<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<link href="css/apps/contract/edit.css"  type="text/css"  rel="stylesheet" />
 <%
        org.joda.time.DateTime dt = org.joda.time.DateTime.now();
        pageContext.setAttribute("ddate", dt.toString("yyyy-MM-dd"));
     %>
<div class="input-append">
   <form id="pform">
     <select name="bean.client.id" id="clients" ></select>     
     <input  name="bean.fireDate" class="datepicker" id="firedate" value="${ddate}" readOnly />     
      <button class="btn btn-success" type="button" onclick="searchOutcome()">
       <i class="icon-white icon-search"></i>
                 查询
     </button>
   </form>
    
</div>

<table class="table table-bordered table-hover table-striped">
  <thead>
  
  <tr>
    <th>合同号</th>
    <th>产品代码</th>
    <th>产品名称</th>
    <th>批号</th>
    <th>箱数</th>
    <th>数量[万/公斤/KG/M]</th>
    <th>管理</th>
  </tr>
  </thead>
  <tbody id="pdtBody">
  
  </tbody>
  <tfoot>
   <tr>
    <td>
    
    </td>
   </tr>
  </tfoot>
</table>





<script type="text/javascript">
  
  $(function(){
	 $("#firedate").datepicker();
	 $("#clients").load('contract/client/contract-client!options') ;
  });
  function searchOutcome(){
	 
	  var pstr = "search="+$("#clients").val()+"&bean.fireDate="+$("#firedate").val();
	  $("#pdtBody").load('productcomeoutitem/product-comeout-item!search?'+pstr);
	  
  }
 
</script>